﻿'use strict';

/*global module, exports, define, ActiveXObject*/
(function (global, factory) {
    if (typeof exports === 'object') {
        // Node
        module.exports = factory();
    }
    if (typeof define === 'function' && define.amd) {
        // AMD
        define(factory);
    }
}(typeof window !== "undefined" ? window : this, function () {
    var Response = function (options) {
        this.message = '',
        this.id = 0,
        this.data = null;

        if (arguments.length == 1) {
            _.extend(this, options);
        }
        else {
            this.id = arguments[0];
            this.message = arguments[1];
            this.data = arguments[2];
        }
    };

    return Response;
}));